class Config:
    # mysql数据库配置信息
    # HOSTNAME = "127.0.0.1"
    # PORT = 3306
    # USERNAME = "root"
    # PASSWORD = "root"
    # # mysql上创建的数据库名称
    # DATABASE = "library"
    # mysql需手动创建好数据库之后，才能使用db init/migrate
    # DB_URI = f"mysql+pymysql://{USERNAME}:{PASSWORD}@{HOSTNAME}:{PORT}/{DATABASE}"
    # sqlite配置
    DB_URI = 'sqlite:///library.db'
    SQLALCHEMY_DATABASE_URI = DB_URI
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    # 转码，不改会乱码,如果有中文你要加上
    JSON_AS_ASCII = False
    # 设置 JWT_SECRET_KEY
    JWT_SECRET_KEY = '25ccbcaab1d6e826e0acd8bfacc6d4131773a04256c631a9'
